package com.xtecher.app.okhttp;

import java.io.File;

/**
 * Created by luhao on 2016/12/21.
 */

public interface IRequestManager {

    /**
     * get方式请求
     * @param url
     * @param onLoadListener
     */
    void get(String url, OnLoadListener onLoadListener);

    /**
     * post上传json数据
     *
     * @param url
     * @param requestBody
     * @param onLoadListener
     */
    void postString(String url, String requestBody, OnLoadListener onLoadListener);

    /**
     * 携带token, post上传json数据
     *
     * @param url
     * @param token
     * @param requestBody
     * @param onLoadListener
     */
    void postWithToken(String url, String token, String requestBody, OnLoadListener onLoadListener);

    /**
     * 携带uid 上传文件
     *
     * @param uid
     * @param file
     * @param onLoadListener
     */
    void postFile(String url, String uid, File file, OnLoadListener onLoadListener);
}
